package com.wjbgn.bsolver.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wjbgn.stater.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Description:
 * Create Date: 2022-04-21T13:26:52.898
 *
 * @author wjbgn
 * @version 1.0
 */
@Data
@ApiModel(value = "BugAnsweredRecordDTO", description = "数据传输对象BugAnsweredRecordDTO")
public class BugAnsweredRecordDTO extends PageDTO {

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String id;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String bugId;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    private String username;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    private String content;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    private String beAnsweredUsername;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 是否删除，1是，0否
     */
    @ApiModelProperty(notes = "是否删除，1是，0否")
    private Integer isDelete;

    private String createTimeStr;

    private String murmur;

    @ApiModelProperty(notes = "被采纳数")
    private Long acceptNum;

    @ApiModelProperty(notes = "被驳回数")
    private Long rejectNum;

    @ApiModelProperty(notes = "采纳或反对标记：accept、reject")
    private String flag;

    @ApiModelProperty(notes = "当前用户是否采纳")
    private boolean currentHasAccept;

    @ApiModelProperty(notes = "当前用户是否无用")
    private boolean currentHasReject;

    private String nickname;

    private String beAnsweredNickname;
}
